﻿using IT_RoadBlock.Controls;
using IT_RoadBlock.Entities;
using IT_RoadBlock.ViewModes;
using HandyControl.Controls;

namespace IT_RoadBlock
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class ProjectInjectionEditWindow : HandyControl.Controls.GlowWindow
    //
    {
        public ProjectInjectionEditWindow(TProjectInjectionInfo item)
        {
            InitializeComponent();
            this.DataContext =new ProjectInjectionEditViewModel(item) {
                CloseWindow = () => this.Close(),
                DialogWindow = (win, rs) =>
                {
                    Dialog.Show(new TextDialog(win, rs));
                }
            };
        }
    }
}
